
def clustersDescription(clusters, categories, files):
    print 'nb Clusters', clusters.nbClusters
    print 'id Cluster | nb Categories | nb Files | Files'
    for i in clusters.positions:
        s = 0
        for j in clusters.positions[i]:
            s += categories[j][1]
        
        print i, '\t', clusters.positions[i].__len__(), '\t', s, '\t', (float(s)*100)/files.bag.__len__(),'%'
        
